//-------------缓存用户登录信息——--------------
export const saveUserInfo = function (data){
	uni.setStorage({
	    key: 'user_info',
	    data: data,
	    success: function () {
	    }
	});
}
export const getUserInfo = function (){
	return uni.getStorageSync("user_info");
}
export const removeUserInfo = function (){
	uni.removeStorage({
		key: 'user_info',
		success: function (res) {
			//console.log('success');
		}
	});
}

export const saveUserLoginInfo = function (data){
	uni.setStorage({
	    key: 'user_login_info',
	    data: data,
	    success: function () {
	    }
	});
}
export const getUserLoginInfo = function (){
	return uni.getStorageSync("user_login_info");
}
export const removeUserLoginInfo = function (){
	/* uni.removeStorageSync({
		key: 'user_login_info',
		success: function (res) {
			//console.log('success');
		}
	}); */
	let userLoginInfo = getUserLoginInfo();
	userLoginInfo.pwd = "";
	saveUserLoginInfo(userLoginInfo);
}